# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-dnspython
_pyname=dnspython
pkgver=2.0.0
pkgrel=1
pkgdesc="A DNS toolkit for Python3"
url="https://www.dnspython.org/"
arch="all"
license="ISC"
makedepends="py3-setuptools python3-dev cython"
source="https://files.pythonhosted.org/packages/source/d/$_pyname/$_pyname-$pkgver.zip"
builddir="$srcdir/$_pyname-$pkgver"

replaces="py-dnspython" # Backwards compatibility
provides="py-dnspython=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build --cython-compile
}

check() {
	python3 setup.py check --cython-compile
}

package() {
	python3 setup.py install --cython-compile --prefix=/usr --root="$pkgdir"
}

sha512sums="5dd135c9e550c9b50128c6eec31de63fd993efb24097394f29f93d1f99ca509c514c7a46eefd6336503727f43a6358f775046f442ea60cc9647c1451490bcd87  dnspython-2.0.0.zip"
